import request from '@/utils/request'

export function getPage(params) {
  return request({
    url: '/flower/page',
    method: 'get',
    params
  })
}

export function saveFlower(data) {
  return request({
    url: '/flower',
    method: 'post',
    data
  })
}

export function editFlower(data) {
  return request({
    url: '/flower',
    method: 'put',
    data
  })
}

export function getById(flowerId) {
  return request({
    url: '/flower/getById',
    method: 'get',
    params: {
      flowerId
    }
  })
}

export function removeFLower(flowerId) {
  console.log(flowerId);
  return request({
    url: '/flower',
    method: 'delete',
    params: {
      flowerId
    }
  })
}

export function batchDeleteFLower(ids) {
  console.log("api");
  console.log(ids);

  return request({
    url: '/flower/batchDelete/' + ids,
    method: 'delete',

  })
}




